ABC118 B - Foods Loved by Everyone
https://atcoder.jp/contests/abc118/tasks/abc118_b
提出
code: python
n, m = map(int, input().split())
a =
list(map(int,input().split())) for _ in range(n)
likes =
0
* m
for i in a:
for j in range(1, i
0
+1):
likes[i
j
-1] += 1
ans = 0
for i in likes:
if (i == n):
ans += 1
print(ans)